﻿<%@ Page Language="C#" %>

<%
    //Lay ma nguoi dung
    int maNguoiDung = int.Parse(Request["nguoidung"]);
    //Lay danh sach san pham thiet ke theo ma nguoi dung
    System.Collections.Generic.List<DTO.SanPhamThietKeDto> sanpham =
        BUS.SanPhamThietKeBus.LayDanhSachSanPhamThietKeCuaNguoiDung(maNguoiDung);
    
%>


    <%
        if (sanpham.Count == 0)
            Response.Write("Hiện tại chưa có sản phẩm thiết kế nào");
        else
        {
            
            for (int i = 0; i < sanpham.Count; i++)
            {

                Response.Write("<div id='divThietKe' style=' float:left ; width:180px; height:195px; background-image: url(../" + BUS.HinhMauThietKeBus.LayHinhTheoID(sanpham[i].IDHinhMau) + "1.JPG)'>");
                Response.Write("<div id='divTrangTri' style=' float:left ; width:60px; height:60px ;  margin-top:50px ; margin-left:60px'>" + "<img width='60px' height='60px' src='../" + BUS.HinhTrangTriBus.LayHinhTheoID(sanpham[i].IDHinhTrangTri) + "' /></div>");
                Response.Write("</div><div style='float:left'>&nbsp&nbsp&nbsp</div>");


            }
        }        
    %>


